﻿Public Class Frm_Avoc_Bure_hay2a

    Private Sub Frm_Avoc_Bure_hay2a_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
        Frm_Avoc_Bure.Enabled = True
        Frm_Avoc_Adv.Enabled = True
        Frm_Avoc_Clien.Enabled = True
        Frm_Avoc_mokhabara.Enabled = True
        Frm_sahib_maktab.Enabled = True
        Partager.RemplirList(List_hay2a, "Comb_hay2a", "hay2a")
        Partager.com_ville(Frm_Avoc_Bure.Comb_hay2a, "Comb_hay2a", "hay2a")
        Partager.com_ville(Frm_Avoc_Adv.Comb_hay2a, "Comb_hay2a", "hay2a")
        Partager.com_ville(Frm_sahib_maktab.Comb_hay2a, "Comb_hay2a", "hay2a")
        Partager.com_ville(Frm_Avoc_mokhabara.Comb_hay2a, "Comb_hay2a", "hay2a")
        Partager.com_ville(Frm_Avoc_Clien.Comb_hay2a, "Comb_hay2a", "hay2a")
    End Sub

    Private Sub Frm_Avoc_Bure_hay2a_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Partager.RemplirList(List_hay2a, "Comb_hay2a", "hay2a")
    End Sub

    Private Sub btn_ajout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_ajout.Click
        Partager.AjouterWadifa(txt_hay2a, List_hay2a, "Comb_hay2a", "hay2a")
    End Sub

    Private Sub btn_supp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_supp.Click
        Partager.DeleteFromList(List_hay2a, "Comb_hay2a", "hay2a", txt_hay2a)
    End Sub
End Class